cmake_minimum_required(VERSION 3.10.0)
project(demo VERSION 0.1.0 LANGUAGES C CXX)

add_executable(demo main.cpp max.cpp)

include(CTest)
enable_testing()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
add_executable(test_max test_aa.cpp max.cpp)
add_subdirectory(googletest)
target_link_libraries(test_max gtest_main)
add_test(NAME test_m COMMAND test_max)
